# -*- coding: utf-8 -*-
"""
@Time : 2024/5/7 8:12 PM
@Author: imamhusan
@Des: 工具包
"""
import uuid
import random
import datetime


def generate_ran_number(ln: int = 4) -> str:
    random_num = ''.join(random.choices('1234567890', k=ln))
    return random_num


def generate_order_no(ln: int = 4) -> str:
    random_num = str(uuid.uuid4().int)[:ln]
    now = datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')
    return now + random_num
